package com.jvm;

public class JVM_10_编译器 {

    /**
     * 多执行几次，比较执行的时间，我这里执行的时间分别为 13600 10483 10539
     * 
     * @param args
     */

    public static void main(String[] args) {
        for (int i = 0; i < 10_0000; i++) {
            out();
        }
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10_0000; i++) {
            out();
        }
        long end = System.currentTimeMillis();
        System.err.println(end - start);

    }

    public static void out() {
        for (long i = 0; i < 10_0000; i++) {
        }
    }

}
